/*
 * Copyright (c) 2007 jNetX.
 * http://www.jnetx.com
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of
 * jNetX. You shall not disclose such Confidential Information and
 * shall use it only in accordance with the terms of the license
 * agreement you entered into with jNetX.
 *
 * $Id$
 */
package com.jnetx.javax.sip.util;

/**
 * @author <a href="mailto:dparhonin@jnetx.ru">Dmitry Parhonin</a>
 * @version $Revision$
 */
public class KeywordChecker {
    private final CharacterTree<String> keywordTree = new CharacterTree<String>();

    public KeywordChecker(String... keywords) {
        for (String keyword : keywords)
            keywordTree.put(keyword, keyword);
    }

    public boolean checkKeyword(String keyword) {
        return keywordTree.get(keyword) != null;
    }
}
/*
 * $Log$
 */